package com.start.shop.modules.repository.dao;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Param;

import com.start.shop.modules.repository.entity.Agent;

public interface AgentDao {
	/**
	   *  插入代理
	 */
	public int insert(Agent agent);
	
	/**
	 * 增加奖励次数
	 */
	public int updateRewardTimes(int agentId);
	
	/**
	 * 奖励
	 */
	public int updateIncreaseFreezeAmt(@Param("agentId")int agentId, @Param("amount")BigDecimal amount);
	
	/**
	 * 确认奖励
	 */
	public int updateIncreaseCashAmt(@Param("agentId")int agentId, @Param("amount")BigDecimal amount);
	
	/**
	 * 提现
	 */
	public int updateDrawAmt(@Param("agentId")int agentId, @Param("amount")BigDecimal amount);
	
}

